package com.atguigu.controller;

import com.atguigu.pojo.SysUser;
import com.atguigu.service.SysUserService;
import com.atguigu.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName: $ {NAME}
 * Package: ${PACKAGE_.NAME}
 * Description:
 *
 * @Author洛小羽
 * @Create 2024/5/1 12:59
 * aVersion 1.0
 */
@RestController
@RequestMapping("sysUser")
@CrossOrigin
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    @PostMapping("add")
    public Result add(@RequestBody SysUser sysUser){
        sysUserService.addSysUser(sysUser);
        return Result.ok(null);
    }
}
